package worker;


import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

import common.WorkerObject;

@XmlRootElement(name = "Request")
class RegisterRequestObject {

	private String from;
	private String type;
	private Long timestamp;
	private WorkerObject worker;

	@XmlAttribute
	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	@XmlAttribute
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Long timestamp) {
		this.timestamp = timestamp;
	}

	public WorkerObject getWorker() {
		return worker;
	}

	public void setWorker(WorkerObject worker) {
		this.worker = worker;
	}
	
}
